package com.ny.service;

import com.ny.entity.Student;
import com.ny.impl.StudentDaoImpl;
import dao.StudentDao;

import java.sql.SQLException;

public class StudentServiceImpl {
    private StudentDao studentDao;

    public int add(Student student) throws SQLException, ClassNotFoundException {
        studentDao = new StudentDaoImpl();
            return studentDao.add(student);
        }
    }